* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
    height: 100%;
}

body {
    background-image: url("../img/1.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/*导航栏样式*/
.nav{
    height: 50px;
    background-color: rgb(50,50,50);
    color: rgb(255,255,255);
    /* 导航栏内部的元素垂直方居中   */
    display: flex;
    align-items: center;
    /* 让里面的元素距离左侧边框，有点间隙   */
    padding-left: 20px;
    position: relative;
    z-index: 2;
    opacity: 0.7;
}

